﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using System.Xml;
using MCMLXVII.BackEnd.Services.Common.Messages;
using MCMLXVII.Core.Common;

#endregion

namespace MCMLXVII.BackEnd.Services.OrganizationChart.Messages
{
    [Serializable()]
    [System.Xml.Serialization.XmlType(Namespace = "http://tempuri.org/")]
    public class msgOrganizationMemberInfo
    {

        private int _MemberID;    
        public int MemberID
        {
            get
            {
                return _MemberID;
            }
            set
            {
                _MemberID=value;
            }

        }

        private string _Description;
        public string Description
        {
            get
            {
                return _Description;
            }
            set
            {
                _Description=value;
            }
        }

        private int _NodeID;
        public int NodeID
        {
            get
            {
                return _NodeID;
            }
            set
            {
                _NodeID=value;
            }
        }

        private int _MemberClass;
        public int MemberClass
        {
            get
            {
                return _MemberClass;
            }
            set
            {
                _MemberClass=value;
            }
        }


        private int _UpdateSequence;
        public int UpdateSequence
        {
            get
            {
                return _UpdateSequence;
            }
            set
            {
                _UpdateSequence=value;
            }
        }


        private msgXMLResponse _ClassProperties;
        public msgXMLResponse ClassProperties
        {
            get
            {
                return _ClassProperties;
            }
            set
            {
                _ClassProperties=value;
            }
        }

        private int _SecurityProviderID;
        public int SecurityProviderID
        {
            get
            {
                return _SecurityProviderID;
            }
            set
            {
                _SecurityProviderID=value;
            }
        }

        private string _LogonName;
        public string LogonName
        {
            get
            {
                return _LogonName;
            }
            set
            {
                _LogonName=value;
            }
        }

        private string _DirectoryIdentifier;
        public string DirectoryIdentifier
        {
            get
            {
                return _DirectoryIdentifier;
            }
            set
            {
                _DirectoryIdentifier=value;
            }
        }

        private string _Language;
        public string Language
        {
            get
            {
                return _Language;
            }
            set
            {
                _Language=value;
            }
        }

        private msgMembershipInfo _RoleMemberID;
        public msgMembershipInfo RoleMemberID
        {
            get
            {
                return _RoleMemberID;
            }
            set
            {
                _RoleMemberID=value;
            }
        }


        private msgMembershipInfo[] _MemberOf;
        public msgMembershipInfo[] MemberOf
        {
            get
            {
                return _MemberOf;
            }
            set
            {
                _MemberOf=value;
            }
        }



        public msgOrganizationMemberInfo()
        {

        }
        public msgOrganizationMemberInfo(int MemberID, string Description, int NodeID, int MemberClass, XmlReader ClassProperties, int SecurityProviderID, string LogonName, string DirectoryIdentifier, string Language, msgMembershipInfo rolememberID, msgMembershipInfo[] memberOf, int updateSequence)
        {
            _ClassProperties = new msgXMLResponse(ClassProperties);
            _Description = Description;
            _DirectoryIdentifier = DirectoryIdentifier;
            _Language = Language;
            _LogonName = LogonName;
            _MemberClass = MemberClass;
            _MemberID = MemberID;
            _NodeID = NodeID;
            _SecurityProviderID = SecurityProviderID;
            _RoleMemberID = rolememberID;
            _MemberOf = memberOf;
            _UpdateSequence = updateSequence;

        }
        public msgOrganizationMemberInfo(int MemberID, string Description, int NodeID, int MemberClass, string ClassProperties, int SecurityProviderID, string LogonName, string DirectoryIdentifier, string Language, msgMembershipInfo roleMemberID, msgMembershipInfo[] memberOf, int updateSequence)
        {
            _ClassProperties = new msgXMLResponse(ClassProperties);
            _Description = Description;
            _DirectoryIdentifier = DirectoryIdentifier;
            _Language = Language;
            _LogonName = LogonName;
            _MemberClass = MemberClass;
            _MemberID = MemberID;
            _NodeID = NodeID;
            _SecurityProviderID = SecurityProviderID;
            _RoleMemberID = roleMemberID;
            _MemberOf = memberOf;
            _UpdateSequence = updateSequence;
        }

    }

}
